{% extends 'student/base.html' %}

{% load static %}

{% block title %}主页-ZZN'S WEBSITE{% endblock  %}
{% block search %}
<form class="form-inline mt-2 mt-md-0 " method="post" action="">
    {% csrf_token %}
    <input class="form-control mr-sm-2" type="text" placeholder="搜索" aria-label="Search" name="postsearch">
    <button class="btn btn-outline-light my-2 my-sm-0" type="submit">搜索</button>
</form>
{% endblock search %}



{% block main %}
<div class="null">

</div>

<main class="container">
    {% if warning %}
    <div class="alert alert-warning alert-dismissible fade show" role="alert">
        <strong>{{ warning }}</strong>
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    {% endif %}

    <div class="null">

    </div>
    <h2 class="text-center">欢迎来到ZZN的网站</h2>
    <div class="cards">


        <div class="card" style="width: 400px">
            <img class="card-img-top" src="{% static 'student/images/logo.png' %}" alt="" width="100%">
            <div class="card-body">
                <h4 class="card-title">提供以下功能</h4>
                <h5>校宣纳新录取进度查询</h5>
                <p>请在右上角的搜索框中输入自己的<strong>学号</strong>或者<strong>姓名</strong></p>

            </div>

        </div>
    </div>


    {% if item %}
    <div class="text-center">
        <h4>{{ item.Name }}</h4>
        <p><strong>笔试</strong>
            {% if item.Apply %}
            <span class="text-success">通过</span>
            {% else %}
            <span class="text-danger">未通过</span>
            {% endif %}

            <strong>面试</strong>
            {% if item.Admit %}
            <span class="text-success">通过</span>
            {% else %}
            <span class="text-danger">未通过</span>
            {% endif %}

        </p>

    </div>
    {% endif %}

    {% if none %}
    <div class="text-center">
        <h4><span class="text-danger">{{ none }}</span></h4>
    </div>
    {% endif %}


</main>

<div class="null"></div>


{% endblock main %}